package touro.mancala.slave;


public class Store {
	private int stones;
	private int player;

	public Store (int player) {
		this(4, player);
	}

	public Store (int numStones, int player) {
		stones = numStones;
		this.player = player;
	}
	
	public Store(Store store) {
		stones = store.getSize();
		player = store.getPlayer();
	}

	//setters

	public void setStones (int stones) {
		this.stones = stones;
	}

	public void addStone () {
		stones++;
	}
	
	public void addStones (int stones) {
		this.stones += stones;
	}

	public void setPlayer (int p) {
		player = p;
	}

	public int getPlayer() {
		return player;
	}

	public int getSize() {
		return stones;
	}

	public boolean isEmpty () {
		if (stones == 0) {
			return true;
		}
		return false;
	}

}
